package com.pig4cloud.pig.village.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pig4cloud.pig.village.api.entity.VillageImage;
import org.springframework.web.multipart.MultipartFile;

import java.util.Collection;
import java.util.List;

/**
 * @author limbray.li
 * @date 2021/6/26
 */
public interface IImageService extends IService<VillageImage> {
	boolean saveFiles(Integer type, Long key, MultipartFile[] files);
	boolean saveFiles(Integer type, Long key, MultipartFile file);
	List<VillageImage> getImages(Integer type, Collection<Long> keys);
	VillageImage getImageByObjectName(String objectName);
}
